﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DreamBox.Admin.User
{
    public partial class GroupAdd : BLL.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnPost_Click(object sender, EventArgs e)
        {
            Model.Admin.UserGroup m = new Model.Admin.UserGroup();
            m.GID = int.Parse(GroupID.Text.Trim());
            m.GroupName = GroupName.Text;
            m.IsStatus = boxStatus.Checked;

            DAL.Admin.UserGroup group = new DAL.Admin.UserGroup();
            if (group.Add(m))
            {
                BLL.Admin.Tips.DetailedTips(this, "添加成功", "/User/GroupList.aspx", "1");
            }
        }
    }
}